Everything Totally Explained


Ask & we'll explain, totally!
Value (computer science)
Totally Explained


  NEW! All the latest news in the worlds of computer gaming, entertainment, the environment,  
finance, health, politics, science, stocks & shares, technology and much, much, more.  


View this entry using RSS

Everything about Value Computer Science totally explained

In computer science, a value is a sequence of bits that's interpreted according to some data type. It is possible for the same sequence of bits to have different values, depending on the type used to interpret its meaning. For instance, the value could be an integer or floating point value, or a string. Some kinds of value are common to most programming languages (for example, various kinds of number representations), while others are less commonly supported (for example, Pascal supports a set type).
   Values are typically in high-level languages considered as referentially transparent, which means that storage details of expressions that produce values, such as the location in which the bits produced by the expression are stored in, are not significant. Only the contents of the bits (whether they're 1 or 0) and their interpretation is significant. A value is the normal form of an expression, which means that an expression that's a value can not be reduced to a simpler expression. For example, the value of the expression "1 + 2" is "3", which can't any longer be reduced to any simpler expression.

In C: L-value and R-value

Some languages use the idea of L-value and R-value. L-values are values that have addresses, meaning they're variables or dereferenced references to a certain memory location. R-value is either L-value or non-L-value — a term only used to distinguish from L-value. In C, the term L-value originally meant something that could be assigned to (coming from left-value, indicating it was on the left side of the = operator), but since 'const' was added to the language, this now is termed a 'modifiable L-value'.
   The L-value expression designates (refers to) an object. A non-modifiable L-value is addressable, but not assignable. A modifiable L-value allows the designated object to be changed as well as examined. An R-value is any expression that isn't an L-value, it refers to a data value that's stored at some address in memory.
   The notion of L-values and R-values was introduced by CPL.

In assembly language

A value can be virtually any kind of data by a given data type, for instance a string, a digit, a single letter.
   In assembly language there's something known as an "immediate value", sometimes referred to as "immediate" for short; An immediate value is stored in memory immediately next to (usually after) the instruction (mnemonic) which operates on it. (This is opposed to a non-immediate value which is stored elsewhere in memory.) Occasionally an immediate value is written as "imm#" where # is a number indicating the size of the immediate value, so imm8 would refer to an immediate 8-bit value. An immediate value is expressed as a number, either written with digits or as a string. "mnemonic 'A'" could be the same as "mnemonic 0x64"; the byte order of strings differs depending on the assembler and computer architecture.

Further Information

Get more info on 'Value Computer Science'.


External Link Exchanges

Do you know how hard it is to get a link from a large encyclopaedia? Well we're different and will prove it. To get a link from us just add the following HTML to your site on a relevant page:

    <a href="http://value__computer_science.totallyexplained.com">Value (computer science) Totally Explained</a>

Then simply click through this link from your web page. Our crawlers will verify your link, extract the title of your web page and instantly add a link back to it. If you like you can remove the words Totally Explained and embed the link in article text.
   As long as your link remains in place, we'll keep our link to you right here. Please play fair - our crawlers are watching. Your site must be closely related to this one's topic. Any kind of spamming, dubious practises or removing the link will result in your link from us being dropped and, potentially, your whole site being banned.



Copyright © 2007-8 totallyexplained.com | Licensed under the GNU Free Documentation License | Site Map
This article contains text from the Wikipedia article Value (computer science) (History) and is released under the GFDL | RSS Version